00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef __PSPNET_ADHOC_H__
00015 #define __PSPNET_ADHOC_H__
00016
00017 #ifdef __cplusplus
00018 extern "C" {
00019 #endif
00020
00026 int sceNetAdhocInit( void );
00027
00033 int sceNetAdhocTerm( void );
00034
00045 int sceNetAdhocPdpCreate(char *mac, int port, unsigned int unk2, int unk3);
00046
00055 int sceNetAdhocPdpDelete(int id, int unk1);
00056
00070 int sceNetAdhocPdpSend(int id, char *destMacAddr, int16 port, void *data, unsigned int len, int unk6, int unk7);
00071
00085 int sceNetAdhocPdpRecv(int id, char *srcMacAddr, int *port, void *data, void *dataLength, int unk6, int unk7);
00086
00090 typedef struct pdpStatStruct
00091 {
00093 struct pdpStatStruct *next;
00095 int pdpId;
00097 char mac[6];
00099 int16 port;
00101 unsigned int rcvdData;
00102 } pdpStatStruct;
00103
00112 int sceNetAdhocGetPdpStat(int *size,
00113 pdpStatStruct *stat);
00114
00115 #ifdef __cplusplus
00116 }
00117 #endif
00118
00119 #endif